import {
  postRequest,
  postJsonRequest
} from '@/api/axios'

// 用于登录
export const userLoginUniapp = (params) => {
  return postJsonRequest('/sys/user-info/userLoginUniapp', params)
}
// 用于注册
export const uniAppUserRegister = (params) => {
  return postJsonRequest('/sys/user-info/uniAppUserRegister', params)
}
// 注册验证码
export const sendRegisterCode = (params) => {
  return postJsonRequest('/sys/email-verify/sendRegisterCode', params)
}
//用于找回密码或登录
export const sendLoginCode = (params) => {
  return postJsonRequest('/sys/email-verify/sendLoginCode', params)
}
// 用于找回密码
export const alterPassword = (params) => {
  return postJsonRequest('/sys/user-info/alterPassword', params)
}